<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<!DOCTYPE HTML>
<html>
<head>
	<meta charset="UTF-8">
	<title>pms登陆页</title>
	<script type="text/javascript" src="bootstrap/jquery.js"></script>
	<link rel="stylesheet" href="bootstrap/bootstrap.min.css" />
	<style type="text/css">
		body{
			background-image:url("bootstrap/backgroundimg.png");
		}
		.div1{
			width:260px;
			height:400px;
			margin-top:100px;
			margin-left:auto;
			margin-right:auto;
		}
		span{
			color:red;
			width:200px;
			height:10px;
		}
	</style>
</head>
<body>
	<div class="div1">
		<form class="well" action="login.jspx" method="post"><!--登陆提交-->
				<h2>登陆---PMS系统</h2>
				<hr />
			  <label>账号</label>
			  <input type="text" class="input1" name="ename" id="input1"/><span id="name_error"></span><br/>
			  <label>密码</label>
			  <input type="password" class="input2" name="epassword"/ ><span id="pwd_error"></span><br/>
			  <input type="button" class="btn btn-primary" value="进入系统">&nbsp;&nbsp;&nbsp;<a href="register.jsp">注册</a><br/>
			  <span></span>
				
		</form>
	</div>
	<script type="text/javascript">
		$(document).ready(function(){
			$(".btn").click(function(){
				var zhanghao = $(".input1").val();
				var password = $(".input2").val();
				if(zhanghao.trim() == ""){
					$("#name_error").html("请输入用户名");
  					return;
				}else if(password == ""){
					$("#pwd_error").html("请输入密码");
  					return;
				}else{
					$(".well").submit();
				}
			});
		});
	</script>
</body>
</html>
